AddMany Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds all the items in collection to the bag.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public void AddMany(
	IEnumerable<T> collection
)
Visual Basic (Declaration)
Public Sub AddMany ( _
	collection As IEnumerable(Of T) _
)
Visual C++
public:
void AddMany (
	IEnumerable<T>^ collection
)

Parameters

collection
IEnumerable<(Of <T>)>
A collection of items to add to the bag.

Remarks

Adding the collection takes time O(M log N), where N is the number of items in the bag, and M is the number of items in collection.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptioncollection is null.

See Also